package org.windowkit.toolkit.widget.text;

import java.text.Format;

import javax.swing.JFormattedTextField;


/**
 * <table border=1>
 * <tr>
 * <td colspan="3" align="center"><strong>History</strong></td>
 * </tr>
 * <tr>
 * <th>Date</th>
 * <th>Name</th>
 * <th>Desc</th>
 * </tr>
 * <tr>
 * <td>2/14/07</td>
 * <td>Rich O'Connell</td>
 * <td>Removed every single method since they all had identical implementations
 * in the super class.</td>
 * </tr>
 * <tr>
 * <td>08/08/2006</td>
 * <td>Eric Lundin</td>
 * <td>Implemented clearValue(). </tr>
 * </table>
 *
 * @author Sean N. Roy
 */
public class FormattedTextField extends JFormattedTextField
	/*implements DataBound TODO resolve naming conflict*/ {

	private static final long serialVersionUID = 2649323509190361584L;

//	private String identifier;

//	/**
//	 * {@inheritDoc}
//	 */
//	public void setId(String id) {
//		identifier = id;
//	}
//
//	/**
//	 * {@inheritDoc}
//	 */
//	public String getId() {
//		return identifier;
//	}
//
//	/**
//	 * {@inheritDoc}
//	 */
//	public void setValue(Object values) {
//		setText(DataBindingUtils.getString(values));
//	}
//
//  TODO possible naming conflict with our DataBound interface
//	@Override
//	public Object getValue() {
//		return getText();
//	}


    public FormattedTextField() {
        super();
    }

    public FormattedTextField(final Format format) {
        super(format);
    }

    public FormattedTextField(final AbstractFormatter formatter) {
        super(formatter);
    }

    public FormattedTextField(final AbstractFormatterFactory factory) {
        super(factory);
    }

    public FormattedTextField(final AbstractFormatterFactory factory,
            final Object currentValue) {
        super(factory, currentValue);
    }

    public FormattedTextField(final Object value) {
        super(value);
    }

    public void clearValue() {
        setValue(null);
    }

}
